package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.dto.AlertRuleDto;
import com.zzyl.entity.AlertData;
import com.zzyl.vo.AlertRuleVo;
/**
 * @author sjqn
 */
public interface AlertRuleService {


    ResponseResult createAlertRule(AlertData dto);

    ResponseResult<PageResponse<AlertRuleVo>> getPage(Integer pageNum, Integer pageSize, String alertRuleName, String functionName, String productKey);

    ResponseResult<AlertRuleVo> readById(Long id);

    ResponseResult updateAlertRule(Long id,AlertRuleDto dto);

    ResponseResult deleteAlertRule(Long id);

    ResponseResult startOrStop(Long id, Long status);
}
